import request from "@/utils/request";
// 表格数据
export function getRole(params) {
    return request({
        url: "/admin/role/list",
        method: "get",
        params,
    });
}
// 添加
export function postCreate(data) {
    return request({
        url: "/admin/role/create",
        method: "post",
        data,
    });
}
// 删除
export function postDelete(data) {
    return request({
        url: "/admin/role/delete",
        method: "post",
        data,
    });
}
// 编辑
export function postUpdate(data) {
    return request({
        url: "/admin/role/update",
        method: "post",
        data,
    });
}
//目录树接口
export function directory(roleId) {
    return request({
        url: "/admin/role/permissions?roleId="+roleId+"",
        method: "get",
    });
}
//授权确定接口
export function directorysure(data) {
    return request({
        url: "/admin/role/permissions",
        method: "post",
        data,
    });
}